import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
// 导入全局css文件（antd自带的）
import 'antd/dist/reset.css';
// 导入history模式组件
import {BrowserRouter as Router} from 'react-router-dom'
//导入国际化插件
import zhCN from 'antd/locale/zh_CN';
import { ConfigProvider } from 'antd'
//导入仓库
import {store,persistor} from  '@/store'
import { Provider } from 'react-redux'
import { PersistGate } from 'redux-persist/lib/integration/react'
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <Provider store={store}>
        <Router>
            <PersistGate loading={null} persistor={persistor}>
                <ConfigProvider locale={zhCN}>
                    <App />
                </ConfigProvider>
            </PersistGate>
            
        </Router>
    </Provider>
);
reportWebVitals();
